package com.xxl.job.executor.pojo;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @description：
 * @author: huaruan
 * @DATE: 2020-03-15 17:06
 * @projectName: hgsoft
 */
public class TbMsgSendLog implements Serializable{
    private static final long serialVersionUID = 3429779265434706583L;

    private Long id;
    private String messageId;
    private Timestamp sendTime;
    private Integer isSendZip;
    private Integer sendResultCode;
    private String sendResultDesc;
    private Timestamp sendResultRecvTime;
    private String respFileName;
    private String contentDisposition;
    private String contentEncoding;
    private String contentLength;
    private String respMd5;
    private String resultJson;
    private Timestamp createTime;
    private Integer domain1;
    private String domain2;

    private String errorsendintf;//异常接口名称
    private String sendFilePath;//请求文件路径
    private String newJson;//用于保存自动提取正确之后的数据


    public String getNewJson() {
        return newJson;
    }

    public void setNewJson(String newJson) {
        this.newJson = newJson;
    }

    public String getErrorsendintf() {
        return errorsendintf;
    }

    public void setErrorsendintf(String errorsendintf) {
        this.errorsendintf = errorsendintf;
    }

    private ResponseEntity responseEntity;

    public ResponseEntity getResponseEntity() {
        return responseEntity;
    }

    public void setResponseEntity(ResponseEntity responseEntity) {
        this.responseEntity = responseEntity;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getIsSendZip() {
        return isSendZip;
    }

    public void setIsSendZip(Integer isSendZip) {
        this.isSendZip = isSendZip;
    }

    public Integer getSendResultCode() {
        return sendResultCode;
    }

    public void setSendResultCode(Integer sendResultCode) {
        this.sendResultCode = sendResultCode;
    }

    public String getSendResultDesc() {
        return sendResultDesc;
    }

    public void setSendResultDesc(String sendResultDesc) {
        this.sendResultDesc = sendResultDesc;
    }

    public Timestamp getSendResultRecvTime() {
        return sendResultRecvTime;
    }

    public void setSendResultRecvTime(Timestamp sendResultRecvTime) {
        this.sendResultRecvTime = sendResultRecvTime;
    }

    public String getRespFileName() {
        return respFileName;
    }

    public void setRespFileName(String respFileName) {
        this.respFileName = respFileName;
    }

    public String getContentDisposition() {
        return contentDisposition;
    }

    public void setContentDisposition(String contentDisposition) {
        this.contentDisposition = contentDisposition;
    }

    public String getContentEncoding() {
        return contentEncoding;
    }

    public void setContentEncoding(String contentEncoding) {
        this.contentEncoding = contentEncoding;
    }

    public String getContentLength() {
        return contentLength;
    }

    public void setContentLength(String contentLength) {
        this.contentLength = contentLength;
    }

    public String getRespMd5() {
        return respMd5;
    }

    public void setRespMd5(String respMd5) {
        this.respMd5 = respMd5;
    }

    public String getResultJson() {
        return resultJson;
    }

    public void setResultJson(String resultJson) {
        this.resultJson = resultJson;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getDomain1() {
        return domain1;
    }

    public void setDomain1(Integer domain1) {
        this.domain1 = domain1;
    }

    public String getDomain2() {
        return domain2;
    }

    public void setDomain2(String domain2) {
        this.domain2 = domain2;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TbMsgSendLog that = (TbMsgSendLog) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (messageId != null ? !messageId.equals(that.messageId) : that.messageId != null)
            return false;
        if (sendTime != null ? !sendTime.equals(that.sendTime) : that.sendTime != null)
            return false;
        if (isSendZip != null ? !isSendZip.equals(that.isSendZip) : that.isSendZip != null)
            return false;
        if (sendResultCode != null ? !sendResultCode.equals(that.sendResultCode) : that.sendResultCode != null)
            return false;
        if (sendResultDesc != null ? !sendResultDesc.equals(that.sendResultDesc) : that.sendResultDesc != null)
            return false;
        if (sendResultRecvTime != null ? !sendResultRecvTime.equals(that.sendResultRecvTime) : that.sendResultRecvTime != null)
            return false;
        if (respFileName != null ? !respFileName.equals(that.respFileName) : that.respFileName != null)
            return false;
        if (contentDisposition != null ? !contentDisposition.equals(that.contentDisposition) : that.contentDisposition != null)
            return false;
        if (contentEncoding != null ? !contentEncoding.equals(that.contentEncoding) : that.contentEncoding != null)
            return false;
        if (contentLength != null ? !contentLength.equals(that.contentLength) : that.contentLength != null)
            return false;
        if (respMd5 != null ? !respMd5.equals(that.respMd5) : that.respMd5 != null)
            return false;
        if (resultJson != null ? !resultJson.equals(that.resultJson) : that.resultJson != null)
            return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null)
            return false;
        if (domain1 != null ? !domain1.equals(that.domain1) : that.domain1 != null)
            return false;
        if (domain2 != null ? !domain2.equals(that.domain2) : that.domain2 != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (messageId != null ? messageId.hashCode() : 0);
        result = 31 * result + (sendTime != null ? sendTime.hashCode() : 0);
        result = 31 * result + (isSendZip != null ? isSendZip.hashCode() : 0);
        result = 31 * result + (sendResultCode != null ? sendResultCode.hashCode() : 0);
        result = 31 * result + (sendResultDesc != null ? sendResultDesc.hashCode() : 0);
        result = 31 * result + (sendResultRecvTime != null ? sendResultRecvTime.hashCode() : 0);
        result = 31 * result + (respFileName != null ? respFileName.hashCode() : 0);
        result = 31 * result + (contentDisposition != null ? contentDisposition.hashCode() : 0);
        result = 31 * result + (contentEncoding != null ? contentEncoding.hashCode() : 0);
        result = 31 * result + (contentLength != null ? contentLength.hashCode() : 0);
        result = 31 * result + (respMd5 != null ? respMd5.hashCode() : 0);
        result = 31 * result + (resultJson != null ? resultJson.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (domain1 != null ? domain1.hashCode() : 0);
        result = 31 * result + (domain2 != null ? domain2.hashCode() : 0);
        return result;
    }

    public String getSendFilePath() {
        return sendFilePath;
    }

    public void setSendFilePath(String sendFilePath) {
        this.sendFilePath = sendFilePath;
    }
}
